package com.tongfusoft.base.data.tis;

import java.util.Date;

import com.tongfusoft.web.core.annotation.FieldName;
import com.tongfusoft.web.core.annotation.LogDesc;
import com.tongfusoft.web.core.annotation.UniqueCheck;
import com.tongfusoft.web.core.data.User;

@UniqueCheck(value = "[{\"MEMBER_ID\":\"memberId\"}]")
@LogDesc(expression="memberName",value="会员")
public class TisMember extends User {

	/**
	 * 会员号
	 */
	@FieldName(value = "MEMBER_ID")
	private String memberId;
	/**
	 * 会员代码
	 */
	@FieldName(value = "MEMBER_CODE")
	private String memberCode;
	/**
	 * 会员等级
	 */
	@FieldName(value = "RANK_ID")
	private String rankId;
	/**
	 * 会员类型[0：个人1：几个]
	 */
	@FieldName(value = "MEMBER_TYPE")
	private String memberType;
	/**
	 * 昵称
	 */
	@FieldName(value = "MEMBER_NAME")
	private String memberName;
	/**
	 * 密码（密文）
	 */
	@FieldName(value = "MEMBER_PWD")
	private String memberPwd;
	/**
	 * 问题
	 */
	@FieldName(value = "PWD_QUESTION")
	private String pwdQuestion;
	/**
	 * 回答
	 */
	@FieldName(value = "PWD_ANSWER")
	private String pwdAnswer;
	/**
	 * 邮箱
	 */
	@FieldName(value = "MEMBER_EMAIL")
	private String memberEmail;
	/**
	 * 邮箱验证
	 */
	@FieldName(value = "MAIL_VALIDATE")
	private String mailValidate;
	/**
	 * 邮箱验证码
	 */
	@FieldName(value = "MAIL_VALICODE")
	private String mailValicode;
	/**
	 * 手机号码
	 */
	@FieldName(value = "MEMBER_MOBILE")
	private String memberMobile;
	/**
	 * 手机验证
	 */
	@FieldName(value = "MOBILE_VALIDATE")
	private String mobileValidate;
	/**
	 * 手机验证码
	 */
	@FieldName(value = "MOBILE_VALICODE")
	private String mobileValicode;
	/**
	 * 电话号码
	 */
	@FieldName(value = "MEMBER_PHONE")
	private String memberPhone;
	/**
	 * 联系人姓名
	 */
	@FieldName(value = "NAME")
	private String name;
	/**
	 * 所属公司
	 */
	@FieldName(value = "COMPANY")
	private String company;
	/**
	 * 联系地址
	 */
	@FieldName(value = "MEMBER_ADDRESS")
	private String memberAddress;
	/**
	 * 注册日期
	 */
	@FieldName(value = "REG_DATE")
	private Date regDate;
	/**
	 * 上次登录时间
	 */
	@FieldName(value = "LAST_LOGIN")
	private Date lastLogin;
	/**
	 * 上次登录ip
	 */
	@FieldName(value = "LAST_IP")
	private String lastIp;
	/**
	 * 备注
	 */
	@FieldName(value = "REMARK")
	private String remark;
	/**
	 * 状态
	 */
	@FieldName(value = "STATUS")
	private String status;

	@Override
	public String getPkName() {
		return "memberId";
	}

	@Override
	public String getTableName() {
		return "TIS_MEMBER";
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getMemberCode() {
		return memberCode;
	}

	public void setMemberCode(String memberCode) {
		this.memberCode = memberCode;
	}

	public String getRankId() {
		return rankId;
	}

	public void setRankId(String rankId) {
		this.rankId = rankId;
	}

	public String getMemberType() {
		return memberType;
	}

	public void setMemberType(String memberType) {
		this.memberType = memberType;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getMemberPwd() {
		return memberPwd;
	}

	public void setMemberPwd(String memberPwd) {
		this.memberPwd = memberPwd;
	}

	public String getPwdQuestion() {
		return pwdQuestion;
	}

	public void setPwdQuestion(String pwdQuestion) {
		this.pwdQuestion = pwdQuestion;
	}

	public String getPwdAnswer() {
		return pwdAnswer;
	}

	public void setPwdAnswer(String pwdAnswer) {
		this.pwdAnswer = pwdAnswer;
	}

	public String getMemberEmail() {
		return memberEmail;
	}

	public void setMemberEmail(String memberEmail) {
		this.memberEmail = memberEmail;
	}

	public String getMailValidate() {
		return mailValidate;
	}

	public void setMailValidate(String mailValidate) {
		this.mailValidate = mailValidate;
	}

	public String getMailValicode() {
		return mailValicode;
	}

	public void setMailValicode(String mailValicode) {
		this.mailValicode = mailValicode;
	}

	public String getMemberMobile() {
		return memberMobile;
	}

	public void setMemberMobile(String memberMobile) {
		this.memberMobile = memberMobile;
	}

	public String getMobileValidate() {
		return mobileValidate;
	}

	public void setMobileValidate(String mobileValidate) {
		this.mobileValidate = mobileValidate;
	}

	public String getMobileValicode() {
		return mobileValicode;
	}

	public void setMobileValicode(String mobileValicode) {
		this.mobileValicode = mobileValicode;
	}

	public String getMemberPhone() {
		return memberPhone;
	}

	public void setMemberPhone(String memberPhone) {
		this.memberPhone = memberPhone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getMemberAddress() {
		return memberAddress;
	}

	public void setMemberAddress(String memberAddress) {
		this.memberAddress = memberAddress;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getLastIp() {
		return lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String getUserDisplayName() {
		return this.memberName;
	}

	@Override
	public String getLoginName() {
		return this.memberName;
	}

	@Override
	public String getUserPasswrod() {
		return this.memberPwd;
	}

}
